import { useState } from "react"
import useInfiniteData from "./useInfiniteData"
import Com from "./Com"

export default function pageD() {
  const [list, setList] = useState([1, 2, 3, 4, 5, 6, 7, 8]) // 一进来默认是0
  useInfiniteData(list, setList)

  return (
    <div>
      <Com list={list} pageName={"pageC"} />
    </div>
  )
}
